package com.qys.livesMall.shop.modal.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 店铺流量消耗统计表(ShopDataStatistics)表实体类
 *
 * @author makejava
 * @since 2023-07-10 09:47:13
 */
@Data
public class ShopDataStatisticsVO {

    @JSONField(serializeUsing = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "店铺名称")
    private String shopName;

    @JSONField(serializeUsing = ToStringSerializer.class)
    @Schema(description = "店铺id")
    private Long shopId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    @Schema(description = "最后使用时间")
    private LocalDateTime lastUseTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    @Schema(description = "最后购买时间")
    private LocalDateTime lastBuyTime;

    @Schema(description = "剩余总量")
    private Integer totalQuantity;

    @Schema(description = "剩余量")
    private Integer residue;

    @Schema(description = "状态（0使用中，已用完）")
    private Integer status;

//    @Schema(description = "站内推荐剩余")
//    private Integer instation;
//
//    @Schema(description = "站外推荐剩余")
//    private Integer outside;
//
//    @Schema(description = "海外推荐剩余")
//    private Integer overseas;

}

